package cn.hs.fjson;

import com.alibaba.fastjson.JSON;

import java.util.Date;

public class TestUser {
    public static void main(String[] args) {
        //创建java对象
        User user=new User(11,"李四",22,new Date());
        //JSON.toJsonString()
        String jstr= JSON.toJSONString(user);
        System.out.println(jstr);

    }
}
